package com.atguigu.yygh.client;

import com.atguigu.yygh.result.R;
import com.atguigu.yygh.vo.order.OrderCountQueryVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

@FeignClient("service-orders")
@RequestMapping("/api/order/orderInfo")
public interface OrdersFeignClient {

    @PostMapping("/auth/getStatisticalByDate")
    public R getStatisticalByDate(@RequestBody OrderCountQueryVo orderCountQueryVo);
}
